package com.hbnu.exception;

import java.util.Scanner;

public class ExceptionDemoTest2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str_in = scanner.nextLine();
        String[] str_list = str_in.split(" ");


        int[] list_num = new int[str_list.length];
        for(int i=0;i< str_list.length;i++){
            list_num[i] = Integer.parseInt(str_list[i]);
        }

        for(int i=0;i<list_num.length-1;i++){
            for(int j=0;j< list_num.length - i - 1 ;j++){
                if(list_num[j] > list_num[j+1]){
                    int t = list_num[j];
                    list_num[j] = list_num[j+1];
                    list_num[j+1] = t;
                }
            }
        }
        StringBuilder stringBuilder = new StringBuilder();

        for (int i = 0; i < list_num.length; i++) {
            if(i == list_num.length-1){
                stringBuilder.append(list_num[i]);
            }
            else{
                stringBuilder.append(list_num[i]+" ");
            }
        }

        System.out.println(stringBuilder);

    }
}
